﻿<UserControl x:Class="Hockey.UILayer.Views.GameInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ctrl="clr-namespace:Hockey.UILayer.Controls"
             xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"                                                                                            
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <LinearGradientBrush x:Key="uxBackground" StartPoint="0,0" EndPoint="1,1">
            <GradientStop Color="Azure" Offset="0" />
            <GradientStop Color="Aquamarine" Offset="1" />
        </LinearGradientBrush>
    </UserControl.Resources>
    <Grid>
            <Viewbox >
                <Border CornerRadius="10" Background="{StaticResource uxBackground}" BorderBrush="Black" BorderThickness="1" Margin="10" Padding="5">
                    <Border.Effect>
                        <DropShadowEffect />
                    </Border.Effect>

                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="1*" />
                            <RowDefinition Height="1*" />
                            <RowDefinition Height="1*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>

                        <TextBlock Grid.Row="0" Grid.Column="0" Text="{loc:Translate Default='Styl hry:'}" TextAlignment="Right" 
                                   Margin="0,0,5,0" FontWeight="Bold" />
                        <TextBlock Grid.Row="1" Grid.Column="0" Text="{loc:Translate Default='Obtížnost:'}" TextAlignment="Right" 
                                   Margin="0,0,5,0" FontWeight="Bold" />
                        <TextBlock Grid.Row="2" Grid.Column="0" Text="{loc:Translate Default='První hraje:'}" TextAlignment="Right" 
                                   Margin="0,0,5,0" FontWeight="Bold" />

                        <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Path=GameStyle}" TextAlignment="Center" />
                        <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Path=EngineLevel}" TextAlignment="Center" />
                        <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding Path=FirstToMove}" TextAlignment="Center" />
                    </Grid>
                </Border>
            </Viewbox>
    </Grid>
</UserControl>
